@extends('home.base.index')
@section('content')
<div class="container">
    <h3 class="block-title">问题反馈主页</h3>
    <form action="{{ url('/home/issuemit') }}" method="post">
        <input type="hidden" name="_token" value="{{ csrf_token() }}">
        <input type="hidden" name="username" value="{{ $username }}">
        <div style="border:8px solid #F57923;padding:20px;background:#F5F5F5">
            <dialog>
                <dt style="color:red;font-size:20px"><img src="{{ url('uploads/kefu.jpg') }}" width="40px">客服：</dt>
                <dd style="font-size:16px">你好！你好！你好！客官请提问！！！</dd><br/>
                @foreach($list as $v)
                <dt style="color:red;font-size:20px"><img src="{{ url('uploads/user.jpg') }}" width="40px">
                    {{ $username }}：
                    <a href="{{ url('/home/issue') }}/{{ $v->issueid }}/edit"><input type="button" value="修改回复+联系方式" style="color:#E6E6E6;background:#FF6700;font-size:12px"></a>
                    <a href="{{ url('/home/issue') }}/{{ $v->issueid }}"><input type="button" value="删除问题" style="color:#E6E6E6;background:#FF6700;font-size:12px"></a>
                </dt>
                <dd  style="font-size:16px">{{ $v->content }}</dd><br/>
                 <dt style="color:red;font-size:20px"><img src="{{ url('uploads/kefu.jpg') }}" width="40px">客服：</dt>
                <dd  style="font-size:16px">{{ $v->return }}</dd><br/>
                @endforeach
            </dialog>
            <h4>填写问题<span style="color:#FF6700">(请先提问,过会儿来会有惊喜！！！)</span>：</h4>
            <textarea name="content" cols="50" rows="5">                           
            </textarea><br/><br/>
            联系方式：<input type="text" name="phone">
            <span style="color:red;margin-left:100px;font-size:20px">
              @if(session('msg'))
                {{session("msg")}}
              @endif 
            </span><br/><br/>
            <input type="submit" value="提交问题"  style="color:#E6E6E6;background:#FF6700;font-size:20px" class="btn">     
        </div>
    </form>
</div>              
@stop
